#!/usr/bin/env Python
import encrypt
import random
import mr_test as mra
import mod
import time
class RSADecrypt():
    def decrypt(self, message, key, modu):
         val_m = (message**key)%modu
         return val_m
decrypted = ""

counter = 0
#msg = []
rsaDe = RSADecrypt()

# decryption
for y in encrypt.msg:
    decrypted += str(rsaDe.decrypt(y, encrypt.key[counter], encrypt.modval[counter]))
    counter += 1
fingerprint=mod.revert_string(decrypted)
if __name__ == "__main__":
    print decrypted
    print fingerprint
